package com.aegis.common.mybatis.base;

import com.aegis.common.mybatis.utils.SortUtil;

/**
 * @Author wuweixin
 * 
 * @Version 1.0
 * @Descritube
 */
public abstract class AbsMapperDTO implements IMapperDTO {

    /**
     * 排序格式 updateTime:asc,priority:desc
     */
    private String sort;

    public String getSort() {
        return sort;
    }

    /**
     *
     * @param sort 格式 updateTime:asc,priority:desc
     * @return
     */
    public void setSort(String sort) {
        this.sort = SortUtil.generateRules(sort, sortFieldMap());
    }

}
